#include "newsserver.h"
#include <iostream>
#include <sstream>

int main(int argc, char *argv[]){
	stringstream s;
	if (argc != 2)
		std::cout << "Usage: newsserver_ram port-number" << std::endl;
	s << argv[1];
	int port;
	s >> port;
	memdatabase *p = new memdatabase();
	newsserver n(p, port);
	n.run();
	delete(p);
}
